c# get random double in range

42

c# get random double in range -

public double GetRandomNumber(double minimum, double maximum)
{ 
    Random random = new Random();
    return random.NextDouble() * (maximum - minimum) + minimum;
}

Comments

Submit
0 Comments